package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.dto.CardVisitorRecordDto;
import com.aiti.lulian.entity.CardVisitorRecord;
import com.aiti.lulian.vo.CardVisitorRecordVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CardVisitorRecordMapper extends SuperMapper<CardVisitorRecord> {

    List<CardVisitorRecordVo> selectCardVisitorRecord(@Param("cardId") String cardId);

    List<CardVisitorRecordVo> selectCardVisitorRecordByUserIds(@Param("userIdList") List<String> userIdList, @Param("realname") String realname, @Param("enterpriseName") String enterpriseName, @Param("visitedRealname") String visitedRealname, @Param("condition") String condition, Page<CardVisitorRecord> page, String scope);

    CardVisitorRecordVo selectVisitorDetail(@Param("baseId") String baseId);

    List<CardVisitorRecordVo> selectCardVisitedRecord(@Param("cardId") String cardId);

    List<CardVisitorRecordVo> selectVisitorListBackend(@Param("dto") CardVisitorRecordDto dto, Page<CardVisitorRecord> page);
}